import { createRouter, createWebHistory } from 'vue-router'
import WelcomeView from '../views/WelcomeView.vue'
import StrategyBacktestView from '../views/StrategyBacktestView.vue'
import PositionCalculationView from '../views/PositionCalculationView.vue'
import TransactionRecordView from '../views/TransactionRecordView.vue'

const routes = [
  {
    path: '/',
    name: 'welcome',
    component: WelcomeView
  },
  {
    path: '/strategy-backtest',
    name: 'strategyBacktest',
    component: StrategyBacktestView
  },
  {
    path: '/position-calculation',
    name: 'positionCalculation',
    component: PositionCalculationView
  },
  {
    path: '/transaction-record',
    name: 'transactionRecord',
    component: TransactionRecordView
  }
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
})

export default router
    